package com.rwx;

//import com.lowagie.text.Document;
//import com.lowagie.text.DocumentException;
//import com.lowagie.text.Paragraph;
//import com.lowagie.text.pdf.PdfWriter;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;


public class ITextDemo {

    public static void main(String[] args) {
//        try {
//            Document document = new Document();
//            PdfWriter.getInstance(document,
//                    new FileOutputStream(
//                            "E:\\BaiduNetdiskDownload\\2023前端\\资料-传智健康项目\\day12\\资源\\软件\\test.pdf"));
//            document.open();
//            document.add(new Paragraph("hello itext"));
//            document.close();
//        } catch (FileNotFoundException e) {
//            e.printStackTrace();
//        } catch (DocumentException e) {
//            e.printStackTrace();
//        }
    }
}
